package educar.controllers;

import educar.gui.CargarUsuarioView;
import educar.gui.ModificarComboView;
import educar.gui.ModificarDatosView;
import educar.gui.ModificarCDFView;
import educar.gui.Abm;
import educar.gui.DatosView;
import educar.gui.IView;
import educar.gui.LoginView;
import educar.models.Session;
import educar.models.User;

public class ModificarController implements IController {
       // private LoginView view;
        //ABM2ViewM cartel;
	    ModificarDatosView modDatos;
	    ModificarCDFView modCDF;
        ModificarComboView com;
        String captura;
               
        
        
        public void process(String model){
        	captura=com.getCargar();
        	if ((captura.compareTo("Datos Personales"))==0) {
        		modDatos = new ModificarDatosView();
       	        modDatos.setVisible(true);
        	} else 
        		modCDF= new ModificarCDFView();
        	    modCDF.setVisible(true);
        	
        	//System.out.println(captura);
        	//System.out.println("hola");
             //captura=abm2.getPersona();          
        	//abm2.present("SE CAPTURO EN LA LISTA DESPLEGABLE UN:  "+captura);
        	 //cartel = new ABM2ViewM();
        	 //cartel.setVisible(true);
                                                 
        }

        @Override
        public void setView(IView com) {
                this.com = (ModificarComboView) com;   
        }       
}
